Strange formatting information in Word export

Quite a while ago I adapted the DOORS Word Exporter to get some special format that we need in our project. Now I'm trying to advance that adapted exporter so that I can select multiple modules in a GUI and export the selected modules in one run. For all I know I did only change the user interface and kept the actual exporting methods like they were, but while before the word file showed:
RQ_123

now it shows:
\deff0\fonttbl\f0\fnil Arial;\f1\fswiss\fprq2\fcharset0 Arial;\f2\froman\fprq2\fcharset2 Sym-bol;\f3\fswiss\fprq2\fcharset128 Arial Unicode MS;\f4\fswiss\fprq2\fcharset129 Arial Uni-code MS;\f5\fswiss\fprq2\fcharset130 Arial Unicode MS;\f6\fswiss\fprq2\fcharset134 Arial Unicode MS;\f7\fswiss\fprq2\fcharset136 Arial Unicode MS;\f8\fswiss\fcharset161 Ari-al;\f9\fswiss\fcharset162 Arial;\f10\fswiss\fcharset163 Arial;\f11\fswiss\fcharset177 Ari-al;\f12\fswiss\fcharset178 Arial;\f13\fswiss\fcharset186 Arial;\f14\fswiss\fcharset204 Ari-al;\f15\fswiss\fprq2\fcharset222 Arial Unicode MS;\f16\fswiss\fcharset238 Arial; RQ_123

I've found out that I'm able to prevent the addition of the formatting information (\deff0\...} by setting styleName to "" in applyStyleLockPasteInvoke. However this destroys the formatting in some cases and is therefore no useable solution.
Whatever I try, I can't find where the unwanted formatting information is added or where the difference between my original exporting methods and those in my enhanced script are. All I did was replacing the references to the utfui*.inc files by one GUI methods. Do those utfui*.inc files do anything about styleMapping that I missed?
It would be really great if someone could give me a hint about possible reasons for the behaviour I'm experiencing.
MichaelGeorg - Wed Aug 31 09:01:37 EDT 2011

Re: Strange formatting information in Word export
OurGuest - Wed Aug 31 10:13:30 EDT 2011

You should read up on rich text. When you become an expert on rich text all your problems will be solved.

Re: Strange formatting information in Word export
Mathias Mamsch - Wed Aug 31 11:43:25 EDT 2011

The behaviour you are experiencing is that instead of putting stuff richtext formatted in your document you put the richText itself in your document. So my guess is you messed up your richText and the setRichClip function does not recognize the text as valid richText anymore and will copy it as plain text. But it is hard to say wihtout seeing the code. Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Strange formatting information in Word export
MichaelGeorg - Tue Sep 06 05:25:47 EDT 2011

Mathias Mamsch - Wed Aug 31 11:43:25 EDT 2011
The behaviour you are experiencing is that instead of putting stuff richtext formatted in your document you put the richText itself in your document. So my guess is you messed up your richText and the setRichClip function does not recognize the text as valid richText anymore and will copy it as plain text. But it is hard to say wihtout seeing the code. Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Because I wasn't able at all to localize the reason for the behaviour I experienced, I just programmed the GUI enhancement once again and now it is working :-)
Anyhow, thanks for you support.